# # templatetags/file_tags.py
# from django import template
# from .. import models

# register = template.Library()

# @register.inclusion_tag('inclusion/directory_tree.html')
# def build_directory_tree(project_id, parent_id=None):
#     queryset = models.FileRepository.objects.filter(
#         project_id=project_id,
#         file_type=2,  # 只显示文件夹
#         parent_id=parent_id
#     ).order_by('-update_datetime')
#     return {'nodes': queryset, 'project_id': project_id}